package com.biz.es.config;

import org.springframework.boot.context.properties.*;
import org.springframework.stereotype.*;

import java.util.*;

/**
 * @Description
 * @Author liuxi
 * @Date 2024/6/10
 **/
@Component
@ConfigurationProperties(prefix = "es.cluster")
public class EsConfigProperties {

    private List<EsClusterConfig> esConfigs = new ArrayList<>();

    public List<EsClusterConfig> getEsConfigs() {
        return esConfigs;
    }

    public void setEsConfigs(List<EsClusterConfig> esConfigs) {
        this.esConfigs = esConfigs;
    }
}
